#ifndef DCPTHREAD_H
#define DCPTHREAD_H

#include <QThread>
#include <QTcpSocket>
class DCPThread : public QThread
{
    Q_OBJECT
public:
    explicit DCPThread(QObject *parent = 0);
    ~DCPThread();
    void init();
    QString read_data(QString cmd);
    void setIP(QString ip);
    void setPort(int port);
    void setDcpGain(double v);
    double getDcpGain();
signals:

public slots:

private:
    QString ip;
    QString port;
    QTcpSocket socket;

};

#endif // DCPTHREAD_H
